# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wlsunset
pkgver=0.2.0
pkgrel=0
pkgdesc="Day/night gamma adjustments for Wayland"
url="https://git.sr.ht/~kennylevinsen/wlsunset"
license="MIT"
arch="all"
makedepends="meson wayland-dev wayland-protocols scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~kennylevinsen/wlsunset/archive/$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="41f0c543fdb6d59ca2ccaada34a90bb51175afcc611736a70045ea3c3035a7276b7d4482abc6c062bcbf462fe398d905a73a64e5fdc89061a1935ad69fef0061  wlsunset-0.2.0.tar.gz"
